package com.pioneer.web.purchase.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pioneer.web.purchase.domain.PurPlanBody;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * PurPlanBodyMapper
 *
 * @author hlm
 * @date 2025-03-25 09:07:22
 */
@Mapper
public interface PurPlanBodyMapper extends BaseMapper<PurPlanBody> {

    /**
     * 批量新增采购计划子信息
     * @param planBodyList 采购计划子信息
     * @return 结果
     */
    int insertBatch(List<PurPlanBody> planBodyList);

    /**
     * 根据采购计划ID删除子信息
     * @param planIdList 采购计划ID
     */
    void deleteBodyById(List<Long> planIdList);
}
